<template>
  <div class="container">
    <my-header />
    <router-link to="/">首页</router-link><br />
    <router-link to="/detail">详情</router-link><br />
    <router-link to="/mynews">收藏</router-link>
    <router-view v-slot="{ Component }">
      <keep-alive include="Home">
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import MyHeader from "./components/Header/index.vue";

export default defineComponent({
  name: "App",
  components: {
    MyHeader,
  },
  setup() {},
});
</script>


<style lang="scss">
</style>
